package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.CerDetaildataImportOfficeInfoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = CerDetaildataImportOfficeInfoServiceFallback.class)
public interface CerDetaildataImportOfficeInfoService {

    @PostMapping("/cdcerserver/v1/detaileddatareportingOffice/batchInsert")
    JsonObj insertOfficeInfo(PageData pageData);

    @PostMapping("/cdcerserver/v1/detaileddatareportingOffice/getOfficePageData")
    JsonObj getOfficePageData(PageData pageData);

    @PostMapping("/cdcerserver/v1/detaileddatareportingOffice/queryAllOfficeExportData")
    JsonObj queryAllOfficeExportData(PageData pageData);

    @GetMapping("/cdcerserver/v1/detaileddatareportingOffice/findDataById")
    JsonObj findById(@RequestParam("id") String id);

}
